package scala.begin

object UsingMap {
   def main(args: Array[String]): Unit = {
      
      val stateCapital = Map("VietNam" -> "HaNoi",
         "My" -> "WasinTonDc",
         "Nhat" -> "Tokyo",
         "ThaiLan" -> "BangCoc",
         "Lao" -> "ViengChan");
      
      println("Thu do VietNam : " + stateCapital.get("VietNam"));
      println("Thu do Han Quoc : " + stateCapital.get("HanQuoc"));
      println("Thu do XinGaPo : " + stateCapital.getOrElse("Xin", "OOPS!!!!!!!"));
   }
}